﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Hosting;
using EPiBoost.Core.Helpers.Resources;
using EPiServer.PlugIn;

namespace EPiBoost.Core.Plugins.Gui.Admin.ContentTypeManager
{
	internal class RegisterResources : PlugInAttribute
	{

		internal const string FilePath = "~/util/EPiBoost/ContentTypeManagerTool.aspx";  
		 

		public static void Start()
		{
			RegisterVppResources();
		}

		private static void RegisterVppResources()
		{
			if (HttpContext.Current == null)
				return;
			
			HostingEnvironment.RegisterVirtualPathProvider(new ResourcePathProvider(System.Web.VirtualPathUtility.ToAbsolute(FilePath), "EPiBoost.Core.Plugins.Gui.Admin.ContentTypeManager.ContentTypeManager.aspx", false));
		}

	}
}
